<%--
  SPWR COA-客户一
  User: Ivan
  Date: 2019-10-08 15:55
--%>
<!DOCTYPE html>
<html lang="en">
<head>
    <style type="text/css">
    tr, th, td {
        text-align: center;
    }
    </style>
</head>

<body>
<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${SYS_QUERY_PATH}" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="${SYS_QUERY_NAME}"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <label>开始日期<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="startTime" class="form-control" data-rule="required"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd"
                   size="11" id="start-date-input" readonly value="${startTime}"/>&nbsp;
            <label>结束日期<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="endTime" class="form-control" data-rule="required"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd"
                   size="11" id="end-date-input" readonly value="${endTime}"/>&nbsp;
            <label>品名：</label>
            <g:textField name="partName" value="${partName}" size="15" placeholder="请输入品名"/>&nbsp;
            <label>批次：</label>
            <g:textField name="lotId" value="${lotId}" size="15" placeholder="请输入批次"/>&nbsp;
            <label>箱号：</label>
            <g:textField name="startBoxLot" value="${startBoxLot}" size="12" placeholder="START"/>
            <g:textField name="endBoxLot" value="${endBoxLot}" size="12" placeholder="END"/>
            <br/><br/>
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a type="button" class="btn btn-blue" href="${request.getContextPath()}/SpwrCoaCustFirst/exportExcel"
               data-toggle="doexport" data-confirm-msg="确定要导出吗？" data-icon="file-excel-o" title="导出Excel">导出</a>&nbsp;
            <a type="button" class="btn btn-blue"
               href="${request.getContextPath()}/BarCodingHis/barCodingHis?startTime=${startTime}&endTime=${endTime}&partName=${partName}&lotId=${lotId}&startBoxLot=${startBoxLot}&endBoxLot=${endBoxLot}&partType=SP"
               data-toggle="navtab" data-id="dialog-normal" data-icon="" data-options="{id:'barCodingHis', title:'条码明细'}" title="条码明细">条码明细</a>
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <g:if test="${reportList.size() > 0}">
        <table class="table table-bordered table-hover table-striped table-top" data-nowrap="true"
               data-selected-multi="true" %{--data-toggle="tablefixed"--}% data-width="100%">
            <thead>
            <tr>
                <th width="50" rowspan="3">NO.</th>
                <th width="125">Ingot Lot#</th>
                <th width="150" rowspan="3">BOX Lot#</th>
                <th width="125">Wafer Pcs</th>
                <th width="125">LOT生产数量</th>
                <th width="375" colspan="3">Ingot Length</th>
                <th width="375" colspan="3">MCLT</th>
                <th width="500" colspan="4">Res</th>
                <th width="375" colspan="3">Oi</th>
                <th width="375" colspan="3">Cs</th>
                <th width="750" colspan="6">Diagonal Length</th>
                <th width="750" colspan="6">Flat Length</th>
                <th width="625" colspan="5">Flat Length Taper</th>
                <th width="750" colspan="6">Corner Length</th>
                <th width="750" colspan="6">Thickness</th>
                <th width="625" colspan="5">TTV</th>
                <th width="625" colspan="5">Roughness Ra</th>
                <th width="625" colspan="5">Roughness Rz</th>
                <th width="750" colspan="6">Verticality</th>
                <th width="125">Copper Content</th>
                <th width="125">Iron Content</th>
                <th width="125">Accept/Reject</th>
            </tr>
            <tr>
                <th width="125" rowspan="2">Specification</th>
                <th width="125" rowspan="2">-</th>
                <th width="125" rowspan="2"></th>
                <th width="125" rowspan="2">Block Length(mm)</th>
                <th width="125" rowspan="2">TotalCrystal length(mm)</th>
                <th width="125" rowspan="2">SeedBlock Absolute Distance(mm)</th>
                <th width="375" colspan="3">≥1000usec</th>
                <th width="500" colspan="4">1.7～13.0Ω.Cm</th>
                <th width="375" colspan="3">≤16.0ppma</th>
                <th width="375" colspan="3">≤1.5ppma</th>
                <th width="750" colspan="6">166±0.2mm</th>
                <th width="750" colspan="6">125±0.2mm</th>
                <th width="625" colspan="5">≤0.25mm</th>
                <th width="750" colspan="6">7.89±0.4mm</th>
                <th width="750" colspan="6">130±15μm</th>
                <th width="625" colspan="5">≤25μm</th>
                <th width="625" colspan="5">Ra≤1.5μm</th>
                <th width="625" colspan="5">Rz≤15μm</th>
                <th width="750" colspan="6">90°+/- 0.1°</th>
                <th width="125">＜20E+13 atoms/cm2</th>
                <th width="125">＜5E+13 atoms/cm2</th>
                <th width="125"></th>
            </tr>
            <tr>
                <th width="125">Top</th>
                <th width="125">Bottom</th>
                <th width="125">LSL</th>

                <th width="125">Top</th>
                <th width="125">Bottom</th>
                <th width="125">USL</th>
                <th width="125">LSL</th>

                <th width="125">Top</th>
                <th width="125">Bottom</th>
                <th width="125">USL</th>

                <th width="125">Top</th>
                <th width="125">Bottom</th>
                <th width="125">USL</th>

                <th width="125">Average</th>
                <th width="125">StdDev</th>
                <th width="125">Min</th>
                <th width="125">Max</th>
                <th width="125">USL</th>
                <th width="125">LSL</th>

                <th width="125">Average</th>
                <th width="125">StdDev</th>
                <th width="125">Min</th>
                <th width="125">Max</th>
                <th width="125">USL</th>
                <th width="125">LSL</th>

                <th width="125">Average</th>
                <th width="125">StdDev</th>
                <th width="125">Min</th>
                <th width="125">Max</th>
                <th width="125">USL</th>

                <th width="125">Average</th>
                <th width="125">StdDev</th>
                <th width="125">Min</th>
                <th width="125">Max</th>
                <th width="125">USL</th>
                <th width="125">LSL</th>

                <th width="125">Average</th>
                <th width="125">StD</th>
                <th width="125">Min</th>
                <th width="125">Max</th>
                <th width="125">USL</th>
                <th width="125">LSL</th>

                <th width="125">Average</th>
                <th width="125">StD</th>
                <th width="125">Min</th>
                <th width="125">Max</th>
                <th width="125">USL</th>

                <th width="125">Average</th>
                <th width="125">StD</th>
                <th width="125">Min</th>
                <th width="125">Max</th>
                <th width="125">USL</th>

                <th width="125">Average</th>
                <th width="125">StD</th>
                <th width="125">Min</th>
                <th width="125">Max</th>
                <th width="125">USL</th>

                <th width="125">Average</th>
                <th width="125">StdDev</th>
                <th width="125">Min</th>
                <th width="125">Max</th>
                <th width="125">USL</th>
                <th width="125">LSL</th>

                <th width="125"></th>
                <th width="125"></th>
                <th width="125"></th>
            </tr>
            </thead>
            <tbody>
            <g:each in="${reportList}" status="i" var="dataInstance">
                <tr data-id="data">
                    <td>${i + 1}</td>
                    <g:each in="${tableHeadList}" status="j" var="headInstance">
                        <g:if test="${headInstance != 'RN'}">
                            <td>${dataInstance[headInstance]}</td>
                        </g:if>
                    </g:each>
                </tr>
            </g:each>
            </tbody>
        </table>
    </g:if>
    <g:else>
        <g:render template="../template/emptyPanel"/>
    </g:else>
</div>
</body>
</html>
<g:render template="../template/unpagination"/>
<script src="${request.getContextPath()}/js/eleFixed.min.js"></script>
<script>
    eleFixed.push({
        target: document.getElementsByTagName('thead')[0], // it must be a HTMLElement
        offsetTop: 210 // height from window offsetTop
    })
</script>